<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let obj = {
        //     name: '张三',
        //     age: '15'
        // }

        // console.log(Object.keys(obj)); // 以数组的形式返回键值对的键
        // console.log(Object.values(obj)) // 以数组的形式返回键值对的值
        // console.log(Object.entries(obj))


        // let obj = {
        //     name: '张三'
        // }
    </script>
</body>
</html>